package com.ff.xyh.access.controller.post;

import com.ff.xyh.access.service.post.PostDeleteFeignService;
import com.ff.xyh.common.entity.post.PostDelete;
import com.ff.xyh.common.entity.result.ResultObject;
import com.ff.xyh.common.qo.post.PostDeleteQuery;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Auther FF
 * @Date 2023年 05月 24日
 * @Time 12:21
 */

@Api(tags = "帖子删除信息管理接口")
@RestController
@RequestMapping("/access/post/delete")
public class PostDeleteController {

    @Autowired
    private PostDeleteFeignService service;


    @ApiOperation(value = "添加帖子删除信息")
    @PostMapping("add")
    ResultObject addPostDelete(
            @RequestBody PostDelete postDelete) {
        return service.addPostDelete(postDelete);
    }

    @ApiOperation(value = "修改帖子删除信息")
    @PostMapping("modify")
    ResultObject modifyPostDelete(
            @RequestBody PostDelete postDelete) {
        return service.modifyPostDelete(postDelete);
    }

    @ApiOperation(value = "条件查询帖子删除信息列表")
    @PostMapping("get")
    ResultObject getPostDeleteCondition(
            @RequestBody PostDeleteQuery postDeleteQuery) {
        return service.getPostDeleteCondition(postDeleteQuery);
    }


}

